package com.qf.mapper;

import com.qf.dto.UserDto;
import com.qf.pojo.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UsersMapper {
    @Insert("insert into users(username,password,passwordsalt) value(#{username},#{password},#{passwordsalt})")
   void insertUsers(Users users);
    @Select("select * from users where username =#{username}")
    Users findUsersByName(@Param("username") String username);


}
